package com.rescue.mapper;

import com.rescue.forum.entity.SysSetting;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SysSettingMapper {
    @Select("select * from sys_setting")
    List<SysSetting> getAll();

    void update(SysSetting sysSetting);

    @Select("select json_content from sys_setting where code = #{code}")
    String getByCode(String code);
}
